package org.bud.data.bit.fmt;

import org.bud.data.bit.check.CheckData;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.function.UnaryOperator;

/**
 * @author shaun
 * @date 2024/7/21
 * @instruction excel最后执行的一种数据格式处理
 */
public class IntFmt extends DefaultNumberFmt {
    @Override
    protected CheckData def() {
        return (data,key) ->
                data instanceof Double ||
                        data instanceof Float ||
                        data instanceof Integer ||
                        data instanceof BigInteger ||
                        data instanceof BigDecimal;
    }
}
